// CodeInjectionDlg.h : header file
//

#pragma once
#include "afxwin.h"

#include <keystone/keystone.h>
// CCodeInjectionDlg dialog
class CCodeInjectionDlg : public CDialogEx
{
	// Construction
public:
	CCodeInjectionDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_CODEINJECTION_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CEdit _edit_asm;
	CEdit _edit_opcode;
	afx_msg void OnBnClickedButtonTransfer();
	int getOpcode(
		ks_arch arch,
		int mode,
		const char *assembly,
		int syntax,
		OUT unsigned char *opcode,
		OUT unsigned int *psize
	);
	CButton _checkbox_isx64;
};
